package com.zhao.dota.vo;

import com.zhao.dota.model.Quotation;
import com.zhao.dota.util.SteamUtil;
import lombok.Data;

@Data
public class QuotationVo extends Quotation {

    private String userName;

    private String userAvatar;

    private String targetName;

    private String targetAvatar;

    private String heroAvatar;

    public void setHeroAvatar() {
        if (this.getHeroName() != null) {
            this.heroAvatar = SteamUtil.getIconUrlByHeroName(super.getHeroName());
        }
    }
}
